package coop.bancocredicoop.proyectos.gd

class FileType {

    static hasMany = [documentTypes:DocumentType]
    String shortName
    String name

    static constraints = {
        shortName blank: false, unique: true 
    }
    
    def String toString() {
        name
    }

	static mapping = {
		table 'gdca_fileType'
		documentTypes(joinTable: [name: 'gdca_fileType_documentType'])
	}

}
